let demo = [
  {
    path: '/pdfViewer',
    name: 'pdfViewer',
    component (resolve) {
      require(['../view/demos/pdf/PdfViewer'], resolve)
    },
    meta: {
      keepAlive: false,
      menuItem: 'pdf',
      subMenu: '',
      rootDir: '',
      title: 'pdf'
    }
  },
  {
    path: '/tree',
    name: 'tree',
    component (resolve) {
      require(['../view/demos/tree/Tree'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'tree',
      subMenu: '',
      rootDir: '',
      title: '列表'
    }
  },
  {
    path: '/listPage',
    name: 'listPage',
    component (resolve) {
      require(['../view/demos/leavePage/ListPage'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'listPage',
      subMenu: '',
      rootDir: '',
      title: '列表'
    }
  },
  {
    path: '/detailPage',
    name: 'detailPage',
    component (resolve) {
      require(['../view/demos/leavePage/DetailPage'], resolve)
    },
    meta: {
      keepAlive: false,
      menuItem: 'detailPage',
      subMenu: '',
      rootDir: '',
      title: '详情'
    }
  },
  {
    path: '/code',
    name: 'code',
    component (resolve) {
      require(['../view/demos/code/Code'], resolve)
    },
    meta: {
      keepAlive: false,
      menuItem: 'code',
      subMenu: '',
      rootDir: '',
      title: 'code'
    }
  },
  {
    path: '/table',
    name: 'table',
    component (resolve) {
      require(['../view/demos/table/table'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'listPage',
      subMenu: '',
      rootDir: '',
      title: '表格'
    }
  },
  {
    path: '/skinPeeler',
    name: 'skinPeeler',
    component (resolve) {
      require(['../view/demos/skinPeeler/skinPeeler'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'listPage',
      subMenu: '',
      rootDir: '',
      title: '换肤'
    }
  },
  {
    path: '/upload',
    name: 'upload',
    component (resolve) {
      require(['../view/demos/file/upload'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'listPage',
      subMenu: '',
      rootDir: '',
      title: '上传'
    }
  }
]

export default demo
